package com.cskaoyan.order.dal.persistence;


import com.cskaoyan.order.dal.entitys.Order;
import com.cskaoyan.order.dto.OrderDetailInfo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OrderMapper extends Mapper<Order> {
    Long countAll();


    void updateStatusByOrderId(@Param("orderId") String orderId);

    void deleteOrderByOrderId(@Param("orderId") String orderId);

    int countByUserId(@Param("userId") Long userId);

    int selectStatusByOrderId(@Param("orderId") String orderId);

    int updateStatusToPayedByOrder(@Param("orderId") String orderId);
}